= form_for @post_category, builder: Tenon::FormBuilder do |f|
  .toolbar.bg-color-primary-dk10
    = render 'tenon/shared/breadcrumbs'
    .actions
      - if policy(@post_category).publish?
        %button.action-btn.btn.btn-flat.submit{ data: { disable_with: "Please wait..." } } Save

      %a.action-icon.dropdown-button{ href: '#!', data: { activates: 'form-dropdown'} }
        = i('more_vert')

      %ul.dropdown-content#form-dropdown
        - if @post_category.persisted?
          %li
            = link_to @post_category, data: { method: :delete, confirm: 'Are you sure you want to delete this?' }, class: 'delete-link' do
              = i('delete')
  %main
    = error_messages_for :post_category

    = f.text_field :title, required: true, class: 'form-title-field', autofocus: true

    .spacer
